package com.wfg.blog.utils;

import com.wfg.blog.dao.pojo.SysUser;
import com.wfg.blog.dao.pojo.Tag;

public class UserThreadLocal {

    private UserThreadLocal (){}
    //线程变量
    private static final ThreadLocal<SysUser> LOCAL = new ThreadLocal<SysUser>();

     public static  void put( SysUser sysUser){
        LOCAL.set(sysUser);
    }
    public static  SysUser get(){
        return LOCAL.get();
    }
    public static  void remove(){
        LOCAL.remove();
    }

}
